package ac.github.os.api.common

class SingleList<T : Single> : ArrayList<T>() {

    override fun add(element: T): Boolean {

        if (any { it.keyId() == element.keyId() }) {
            return false
        }

        return super.add(element)
    }

}